#ifndef __ASSERTCAST_H__
#define __ASSERTCAST_H__


#ifdef _DEBUG       //  debug mode
template <class To, class From>
To AssertCast(From t)
{
    return dynamic_cast<To>(t);
}
#else               //  release mode
template <class To, class From>
To AssertCast(From t)
{
     return static_cast<To>(t);
}

#endif



#endif // __ASSERTCAST_H__
